package com.project.bean;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Map;

import org.json.JSONObject;

public class MovieBase {

	public MovieBase(long id, int vodType, String name, String title, int year,
			String discription, String mediaCode, String playLink, int length,
			Date startTime, Date endTime, String coverPicture, int score,
			int scoreCount, int collectCount, int topCount, int treadCount,
			Date onLineTime, String directors, String actors, String cateIds,
			String ePGPath, int chargeType, Date updateTime, int status,
			long batchNo, int createType, String sourceCode, String typeName,
			String moreNames, int isHD, int isFilmNews, String contentType,
			String searchName, String otherPlayLink, String oriName,
			String shortDesc, String areas, int episode, String keyWords,
			String tags) {
		super();
		this.id = id;
		this.vodType = vodType;
		this.name = name;
		this.title = title;
		this.year = year;
		this.discription = discription;
		this.mediaCode = mediaCode;
		this.playLink = playLink;
		this.length = length;
		this.startTime = startTime;
		this.endTime = endTime;
		this.coverPicture = coverPicture;
		this.score = score;
		this.scoreCount = scoreCount;
		this.collectCount = collectCount;
		this.topCount = topCount;
		this.treadCount = treadCount;
		this.onLineTime = onLineTime;
		this.directors = directors;
		this.actors = actors;
		this.cateIds = cateIds;
		this.ePGPath = ePGPath;
		this.chargeType = chargeType;
		this.updateTime = updateTime;
		this.status = status;
		this.batchNo = batchNo;
		this.createType = createType;
		this.sourceCode = sourceCode;
		this.typeName = typeName;
		this.moreNames = moreNames;
		this.isHD = isHD;
		this.isFilmNews = isFilmNews;
		this.contentType = contentType;
		this.searchName = searchName;
		this.otherPlayLink = otherPlayLink;
		this.oriName = oriName;
		this.shortDesc = shortDesc;
		this.areas = areas;
		this.episode = episode;
		this.keyWords = keyWords;
		this.tags = tags;
	}

	public MovieBase() {
		super();
		// TODO Auto-generated constructor stub
	}

	// ID
	private long id = 0;
	// 0-电视剧1-栏目2-电影
	private int vodType = 0;
	// 名称
	private String name = "";
	// 标题
	private String title = "";
	// 年代
	private int year = 0;
	// 简介
	private String discription = "";
	// mediacode
	private String mediaCode = "";
	// 播放串
	private String playLink = "";
	// 时长
	private int length = 0;
	// 生效时间
	private Date startTime = null;
	// 失效时间
	private Date endTime = null;
	// 封面
	private String coverPicture = "";
	// 分数
	private int score;
	// 评分人数
	private int scoreCount = 0;
	// 关注人数
	private int collectCount = 0;
	// 顶的人数
	private int topCount = 0;
	// 踩的人数
	private int treadCount = 0;
	// IPTV上线时间
	private Date onLineTime = null;
	// 导演
	private String directors = "";
	// 主演
	private String actors = "";
	// 分类ID列表
	private String cateIds = "";
	// IPTV收视路径
	private String ePGPath = "";
	// 0-免费1-付费
	private int chargeType = 0;
	// 更新时间
	private Date updateTime = null;
	// 状态
	private int status = 0;
	// 批次号
	private long batchNo = 0;
	// 入库方式
	private int createType = 0;
	// 源ID
	private String sourceCode = "";
	//
	private String typeName = "";
	//
	private String moreNames = "";
	// 是否是高清 0-不是,1-是
	private int isHD = 0;
	// 是否是影讯或者是预告片
	private int isFilmNews = 0;

	private String contentType = "";
	private String searchName = "";
	private String otherPlayLink = "";
	private String oriName = "";
	private String shortDesc = "";
	private String areas = "";
	private int episode = 0;
	private String keyWords = "";
	private String tags = "";

	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public int getVodType() {
		return this.vodType;
	}

	public void setVodType(int vodType) {
		this.vodType = vodType;

	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;

	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getYear() {
		return this.year;
	}

	public void setYear(int year) {
		this.year = year;

	}

	public String getDiscription() {
		return this.discription;
	}

	public void setDiscription(String discription) {
		this.discription = discription;
	}

	public String getMediaCode() {
		return this.mediaCode;
	}

	public void setMediaCode(String mediaCode) {
		this.mediaCode = mediaCode;

	}

	public String getPlayLink() {
		return this.playLink;
	}

	public void setPlayLink(String playLink) {
		this.playLink = playLink;
	}

	public int getLength() {
		return this.length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public Date getStartTime() {
		return this.startTime;
	}

	public String getStartTime_ToDateString() {
		if (startTime == null)
			return "";
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
		return formatter.format(this.startTime);
	}

	public String getStartTime_ToTimeString() {
		if (startTime == null)
			return "";
		SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
		return formatter.format(this.startTime);
	}

	public String getStartTime_ToDateTimeString() {
		if (startTime == null)
			return "";
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return formatter.format(this.startTime);
	}

	public void setStartTime(Date startTime) {
		this.startTime = startTime;
	}

	public Date getEndTime() {
		return this.endTime;
	}

	public String getEndTime_ToDateString() {
		if (endTime == null)
			return "";
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
		return formatter.format(this.endTime);
	}

	public String getEndTime_ToTimeString() {
		if (endTime == null)
			return "";
		SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
		return formatter.format(this.endTime);
	}

	public String getEndTime_ToDateTimeString() {
		if (endTime == null)
			return "";
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return formatter.format(this.endTime);
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public String getCoverPicture() {
		return this.coverPicture;
	}

	public void setCoverPicture(String coverPicture) {
		this.coverPicture = coverPicture;
	}

	public int getScore() {
		return this.score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getScoreCount() {
		return this.scoreCount;
	}

	public void setScoreCount(int scoreCount) {
		this.scoreCount = scoreCount;
	}

	public int getCollectCount() {
		return this.collectCount;
	}

	public void setCollectCount(int collectCount) {
		this.collectCount = collectCount;
	}

	public int getTopCount() {
		return this.topCount;
	}

	public void setTopCount(int topCount) {
		this.topCount = topCount;
	}

	public int getTreadCount() {
		return this.treadCount;
	}

	public void setTreadCount(int treadCount) {
		this.treadCount = treadCount;
	}

	public Date getOnLineTime() {
		return this.onLineTime;
	}

	public String getOnLineTime_ToDateString() {
		if (onLineTime == null)
			return "";
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
		return formatter.format(this.onLineTime);
	}

	public String getOnLineTime_ToTimeString() {
		if (onLineTime == null)
			return "";
		SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
		return formatter.format(this.onLineTime);
	}

	public String getOnLineTime_ToDateTimeString() {
		if (onLineTime == null)
			return "";
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return formatter.format(this.onLineTime);
	}

	public void setOnLineTime(Date onLineTime) {
		this.onLineTime = onLineTime;
	}

	public String getDirectors() {
		return this.directors;
	}

	public void setDirectors(String directors) {
		this.directors = directors;
	}

	public String getActors() {
		return this.actors;
	}

	public void setActors(String actors) {
		this.actors = actors;
	}

	public String getCateIds() {
		return this.cateIds;
	}

	public void setCateIds(String cateIds) {
		this.cateIds = cateIds;
	}

	public String getEPGPath() {
		return this.ePGPath;
	}

	public void setEPGPath(String ePGPath) {
		this.ePGPath = ePGPath;
	}

	public int getChargeType() {
		return this.chargeType;
	}

	public void setChargeType(int chargeType) {
		this.chargeType = chargeType;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public String getUpdateTime_ToDateString() {
		if (updateTime == null)
			return "";
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
		return formatter.format(this.updateTime);
	}

	public String getUpdateTime_ToTimeString() {
		if (updateTime == null)
			return "";
		SimpleDateFormat formatter = new SimpleDateFormat("HH:mm:ss");
		return formatter.format(this.updateTime);
	}

	public String getUpdateTime_ToDateTimeString() {
		if (updateTime == null)
			return "";
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return formatter.format(this.updateTime);
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public int getStatus() {
		return this.status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

	public long getBatchNo() {
		return this.batchNo;
	}

	public void setBatchNo(long batchNo) {
		this.batchNo = batchNo;
	}

	public int getCreateType() {
		return this.createType;
	}

	public void setCreateType(int createType) {
		this.createType = createType;
	}

	public String getSourceCode() {
		return this.sourceCode;
	}

	public void setSourceCode(String sourceCode) {
		this.sourceCode = sourceCode;
	}

	public String getTypeName() {
		return this.typeName;
	}

	public void setTypeName(String typeName) {
		this.typeName = typeName;
	}

	public String getMoreNames() {
		return this.moreNames;
	}

	public void setMoreNames(String moreNames) {
		this.moreNames = moreNames;
	}

	public int getIsHD() {
		return isHD;
	}

	public void setIsHd(int isHD) {
		this.isHD = isHD;
	}

	public String getContentType() {
		return contentType;
	}

	public void setContentType(String contentType) {
		this.contentType = contentType;
	}

	public String getSearchName() {
		return searchName;
	}

	public void setSearchName(String searchName) {
		this.searchName = searchName;
	}

	public String getOtherPlayLink() {
		return otherPlayLink;
	}

	public void setOtherPlayLink(String otherPlayLink) {
		this.otherPlayLink = otherPlayLink;
	}

	public String getOriName() {
		return oriName;
	}

	public void setOriName(String oriName) {
		this.oriName = oriName;
	}

	public String getShortDesc() {
		return shortDesc;
	}

	public void setShortDesc(String shortDesc) {
		this.shortDesc = shortDesc;
	}

	public String getAreas() {
		return areas;
	}

	public void setAreas(String areas) {
		this.areas = areas;
	}

	public int getEpisode() {
		return episode;
	}

	public void setEpisode(int episode) {
		this.episode = episode;
	}

	public String getKeyWords() {
		return keyWords;
	}

	public void setKeyWords(String keyWords) {
		this.keyWords = keyWords;
	}

	public String getTags() {
		return tags;
	}

	public void setTags(String tags) {
		this.tags = tags;
	}

	public int getIsFilmNews() {
		return isFilmNews;
	}

	public void setIsFilmNews(int isFilmNews) {
		this.isFilmNews = isFilmNews;
	}

	public JSONObject toJSON() throws Exception {
		JSONObject json = new JSONObject();
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		json.put("id", this.getId());
		json.put("vodType", this.getVodType());
		json.put("isHD", this.isHD);
		if (name != null) {
			json.put("name", this.getName());
		}
		if (title != null) {
			json.put("title", this.getTitle());
		}
		json.put("year", this.getYear());
		if (discription != null) {
			json.put("discription", this.getDiscription());
		}
		if (mediaCode != null) {
			json.put("mediaCode", this.getMediaCode());
		}
		if (playLink != null) {
			json.put("playLink", this.getPlayLink());
		}
		json.put("length", this.getLength());
		if (startTime != null) {
			json.put("startTime", formatter.format(this.getStartTime()));
		}
		if (endTime != null) {
			json.put("endTime", formatter.format(this.getEndTime()));
		}
		if (coverPicture != null) {
			json.put("coverPicture", this.getCoverPicture());
		}
		json.put("score", this.getScore());
		json.put("scoreCount", this.getScoreCount());
		json.put("collectCount", this.getCollectCount());
		json.put("topCount", this.getTopCount());
		json.put("treadCount", this.getTreadCount());
		if (onLineTime != null) {
			json.put("onLineTime", formatter.format(this.getOnLineTime()));
		}
		if (directors != null) {
			json.put("directors", this.getDirectors());
		}
		if (actors != null) {
			json.put("actors", this.getActors());
		}
		if (cateIds != null) {
			json.put("cateIds", this.getCateIds());
		}
		if (ePGPath != null) {
			json.put("ePGPath", this.getEPGPath());
		}
		json.put("chargeType", this.getChargeType());
		if (updateTime != null) {
			json.put("updateTime", formatter.format(this.getUpdateTime()));
		}
		json.put("status", this.getStatus());
		json.put("batchNo", this.getBatchNo());
		json.put("createType", this.getCreateType());
		if (sourceCode != null) {
			json.put("sourceCode", this.getSourceCode());
		}
		if (typeName != null) {
			json.put("typeName", this.getTypeName());
		}
		if (moreNames != null) {
			json.put("moreNames", this.getMoreNames());
		}
		if (contentType != null) {
			json.put("contentType", this.getContentType());
		}

		json.put("searchName", this.getSearchName());
		json.put("otherPlayLink", this.getOtherPlayLink());
		json.put("oriName", this.getOriName());
		json.put("shortDesc", this.getShortDesc());
		json.put("areas", this.getAreas());
		json.put("episode", this.getEpisode());
		json.put("keywords", this.getKeyWords());
		json.put("tags", this.getTags());
		json.put("isFilmNews", this.getIsFilmNews());
		return json;
	}

	public void fromJSON(JSONObject json) throws Exception {
		if (json == null)
			return;
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		try {
			if (json.get("id") != null) {
				this.setId(Long.parseLong(json.get("id") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("isHD") != null) {
				this.setIsHd(Integer.parseInt(json.get("isHD") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("vodType") != null) {
				this.setVodType(Integer.parseInt(json.get("vodType") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("name") != null) {
				this.setName(json.get("name") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("title") != null) {
				this.setTitle(json.get("title") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("year") != null) {
				this.setYear(Integer.parseInt(json.get("year") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("discription") != null) {
				this.setDiscription(json.get("discription") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("mediaCode") != null) {
				this.setMediaCode(json.get("mediaCode") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("playLink") != null) {
				this.setPlayLink(json.get("playLink") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("length") != null) {
				this.setLength(Integer.parseInt(json.get("length") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("startTime") != null) {
				String value = json.get("startTime") + "";
				if (value.indexOf(" ") <= -1)
					value += " 00:00:00";
				this.setStartTime(formatter.parse(value));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("endTime") != null) {
				String value = json.get("endTime") + "";
				if (value.indexOf(" ") <= -1)
					value += " 00:00:00";
				this.setEndTime(formatter.parse(value));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("coverPicture") != null) {
				this.setCoverPicture(json.get("coverPicture") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("score") != null) {
				this.setScore(Integer.parseInt(json.get("score") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("scoreCount") != null) {
				this.setScoreCount(Integer
						.parseInt(json.get("scoreCount") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("collectCount") != null) {
				this.setCollectCount(Integer.parseInt(json.get("collectCount")
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("topCount") != null) {
				this.setTopCount(Integer.parseInt(json.get("topCount") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("treadCount") != null) {
				this.setTreadCount(Integer
						.parseInt(json.get("treadCount") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("onLineTime") != null) {
				String value = json.get("onLineTime") + "";
				if (value.indexOf(" ") <= -1)
					value += " 00:00:00";
				this.setOnLineTime(formatter.parse(value));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("directors") != null) {
				this.setDirectors(json.get("directors") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("actors") != null) {
				this.setActors(json.get("actors") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("cateIds") != null) {
				this.setCateIds(json.get("cateIds") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("ePGPath") != null) {
				this.setEPGPath(json.get("ePGPath") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("chargeType") != null) {
				this.setChargeType(Integer
						.parseInt(json.get("chargeType") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("updateTime") != null) {
				String value = json.get("updateTime") + "";
				if (value.indexOf(" ") <= -1)
					value += " 00:00:00";
				this.setUpdateTime(formatter.parse(value));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("status") != null) {
				this.setStatus(Integer.parseInt(json.get("status") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("batchNo") != null) {
				this.setBatchNo(Long.parseLong(json.get("batchNo") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("createType") != null) {
				this.setCreateType(Integer
						.parseInt(json.get("createType") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("sourceCode") != null) {
				this.setSourceCode(json.get("sourceCode") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("typeName") != null) {
				this.setTypeName(json.get("typeName") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("moreNames") != null) {
				this.setMoreNames(json.get("moreNames") + "");
			}
		} catch (Exception ex) {
		}

		try {
			if (json.get("contentType") != null) {
				this.setContentType(json.get("contentType") + "");
			}

		} catch (Exception ex) {
		}
		try {
			if (json.get("searchName") != null) {
				this.setSearchName(json.get("searchName") + "");
			}

		} catch (Exception ex) {
		}
		try {
			if (json.get("otherPlayLink") != null) {
				this.setOtherPlayLink(json.get("otherPlayLink") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("oriName") != null) {
				this.setOriName(json.get("oriName") + "");
			}
		} catch (Exception ex) {
		}

		try {
			if (json.get("shortDesc") != null) {
				this.setShortDesc(json.get("shortDesc") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("areas") != null) {
				this.setAreas(json.get("areas") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("episode") != null) {
				this.setEpisode(Integer.parseInt(json.get("episode") + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("keyWords") != null) {
				this.setKeyWords(json.get("keyWords") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("tags") != null) {
				this.setTags(json.get("tags") + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.get("isFilmNews") != null) {
				this.setIsFilmNews(Integer
						.parseInt(json.get("isFilmNews") + ""));
			}
		} catch (Exception ex) {
		}
	}

	public void fromMap(Map<String, String> json) throws Exception {
		if (json == null)
			return;
		SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		try {
			if (json.containsKey("id".toLowerCase())) {
				this.setId(Long.parseLong(json.get("id".toLowerCase()) + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("isHD".toLowerCase())) {
				this.setId(Integer
						.parseInt(json.get("isHD".toLowerCase()) + ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("isFilmNews".toLowerCase())) {
				this.setIsFilmNews(Integer.parseInt(json.get("isFilmNews"
						.toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("vodType".toLowerCase())) {
				this.setVodType(Integer.parseInt(json.get("vodType"
						.toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("name".toLowerCase())) {
				this.setName(json.get("name".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("title".toLowerCase())) {
				this.setTitle(json.get("title".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("year".toLowerCase())) {
				this.setYear(Integer.parseInt(json.get("year".toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("discription".toLowerCase())) {
				this.setDiscription(json.get("discription".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("mediaCode".toLowerCase())) {
				this.setMediaCode(json.get("mediaCode".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("playLink".toLowerCase())) {
				this.setPlayLink(json.get("playLink".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("length".toLowerCase())) {
				this.setLength(Integer.parseInt(json
						.get("length".toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("startTime".toLowerCase())) {
				String value = json.get("startTime".toLowerCase());
				if (value != null) {
					if (value.indexOf(" ") <= -1)
						value += " 00:00:00";
					this.setStartTime(formatter.parse(value + ""));
				}
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("endTime".toLowerCase())) {
				String value = json.get("endTime".toLowerCase());
				if (value != null) {
					if (value.indexOf(" ") <= -1)
						value += " 00:00:00";
					this.setEndTime(formatter.parse(value + ""));
				}
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("coverPicture".toLowerCase())) {
				this.setCoverPicture(json.get("coverPicture".toLowerCase())
						+ "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("score".toLowerCase())) {
				this.setScore(Integer.parseInt(json.get("score".toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("scoreCount".toLowerCase())) {
				this.setScoreCount(Integer.parseInt(json.get("scoreCount"
						.toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("collectCount".toLowerCase())) {
				this.setCollectCount(Integer.parseInt(json.get("collectCount"
						.toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("topCount".toLowerCase())) {
				this.setTopCount(Integer.parseInt(json.get("topCount"
						.toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("treadCount".toLowerCase())) {
				this.setTreadCount(Integer.parseInt(json.get("treadCount"
						.toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("onLineTime".toLowerCase())) {
				String value = json.get("onLineTime".toLowerCase());
				if (value != null) {
					if (value.indexOf(" ") <= -1)
						value += " 00:00:00";
					this.setOnLineTime(formatter.parse(value + ""));
				}
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("directors".toLowerCase())) {
				this.setDirectors(json.get("directors".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("actors".toLowerCase())) {
				this.setActors(json.get("actors".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("cateIds".toLowerCase())) {
				this.setCateIds(json.get("cateIds".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("ePGPath".toLowerCase())) {
				this.setEPGPath(json.get("ePGPath".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("chargeType".toLowerCase())) {
				this.setChargeType(Integer.parseInt(json.get("chargeType"
						.toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("updateTime".toLowerCase())) {
				String value = json.get("updateTime".toLowerCase());
				if (value != null) {
					if (value.indexOf(" ") <= -1)
						value += " 00:00:00";
					this.setUpdateTime(formatter.parse(value + ""));
				}
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("status".toLowerCase())) {
				this.setStatus(Integer.parseInt(json
						.get("status".toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("batchNo".toLowerCase())) {
				this.setBatchNo(Long.parseLong(json
						.get("batchNo".toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("createType".toLowerCase())) {
				this.setCreateType(Integer.parseInt(json.get("createType"
						.toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("sourceCode".toLowerCase())) {
				this.setSourceCode(json.get("sourceCode".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("typeName".toLowerCase())) {
				this.setTypeName(json.get("typeName".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("moreNames".toLowerCase())) {
				this.setMoreNames(json.get("moreNames".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}

		try {
			if (json.containsKey("contentType".toLowerCase())) {
				this.setContentType(json.get("contentType".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("searchName".toLowerCase())) {
				this.setSearchName(json.get("searchName".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("otherPlayLink".toLowerCase())) {
				this.setOtherPlayLink(json.get("otherPlayLink".toLowerCase())
						+ "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("oriName".toLowerCase())) {
				this.setOriName(json.get("oriName".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("shortDesc".toLowerCase())) {
				this.setShortDesc(json.get("shortDesc".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("areas".toLowerCase())) {
				this.setAreas(json.get("areas".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("episode".toLowerCase())) {
				this.setEpisode(Integer.parseInt(json.get("episode"
						.toLowerCase())
						+ ""));
			}
		} catch (Exception ex) {
		}
		try {
			if (json.containsKey("keyWords".toLowerCase())) {
				this.setKeyWords(json.get("keyWords".toLowerCase()) + "");
			}
		} catch (Exception ex) {
		}
	}
}
